<?php 

include('../class.athemephp.php');

if(!isset($_POST['user']) || !isset($_POST['password']) || !isset($_POST['email']))
{
	echo "<h1>Please fill in a username, password and emailaddress!</h1>";
} else {
	$xmlrpc = "http://nl.globalirc.net:8080/xmlrpc";
	$AthemePHP = new AthemePHP($xmlrpc);
	$ret = $AthemePHP->NickServ->Register($_POST['user'], $_POST['password'], $_POST['email']);
	
	print_r($ret);
}

?>

<form method="post">
	Username: <input name="user" type="text" /><br />
	Password: <input type="password" name="password" /><br />
	Email address:<input type="text" name="email" /><br />
	<input type="submit" value="Register!" />
</form>